﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication4
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Get的请求
            string username = Request.Params["n"];
            string password = Request.Params["P"];

            Response.Write($"<h1>Get:Params==>账号是{username },密码是{password }<h1/><br/>");


            //post的请求

            string username1 = Request.Form["TextBox1"];
            string password1 = Request.Form["TextBox2"];

            Response.Write($"<h1>post: Form==>账号是{username1 },密码是{password1 }<h1/><br/>");
        }
    }
}